package com.sendi.mobilework.pager;

import android.app.Activity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.TextView;

import com.sendi.mobilework.R;

/**
 * Created by Administrator on 2017/3/22.
 */

public class BasePager {
    public Activity mActivity;
    public View mRootView;
    public TextView mTitleText;
    public FrameLayout mFrameLayout;
    public ImageButton mImageButton;

    public BasePager(Activity activity){
        mActivity=activity;
        initView();
    }

    /**
     * 初始化界面
     */
    public void initView() {
        mRootView=View.inflate(mActivity, R.layout.base_pager,null);
        mTitleText= (TextView) mRootView.findViewById(R.id.tv_title);
        mFrameLayout= (FrameLayout) mRootView.findViewById(R.id.fl_content);
        mImageButton= (ImageButton) mRootView.findViewById(R.id.ib_add_apply);
    }

    /**
     * 初始化数据
     */
    public void initData(){}

}
